package com.housediyadmin.events.fittingEvents
{
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/15
	 */	
	public class GetFittingEvent extends Event
	{
		public static const GET_ALL_FITTINGS:String = "getAllFittings";
		public static const GET_FITTING_BY_GOODSID:String = "getFittingByGoodsID";
		
		public static const UPDATE_FITTING_MODEL:String = "updateFittingModel";
		public static const UPDATE_FITTING_GOODS:String = "updateFittingGoods";
		
		public var fittingArray:ArrayCollection;
		
		/**
		 * 得到所有的Fitting信息 
		 * @param type：必选参数
		 *             FITTINGS 得到Fitting;
		 *             UPDATE_FITTING_MODEL 更新FittingModel
		 * @param fittingArray ：可选参数， 用来更新FittingModel
		 * 
		 */		
		public function GetFittingEvent(type:String, fittingArray:ArrayCollection = null)
		{
			super(type);
			this.fittingArray = fittingArray;
		}
		
		override public function clone():Event
		{
			return new GetFittingEvent(type, fittingArray);
		}
	}
}